//
//  HapticFeedback.swift
//  CatPomodoroTimer
//
//  Created by Xuri Li on 2024/8/13.
//

import SwiftUI
import UIKit

struct HapticFeedback {
    static func triggerImpactFeedback(style: UIImpactFeedbackGenerator.FeedbackStyle) {
        let generator = UIImpactFeedbackGenerator(style: style)
        generator.prepare() // Propare the generator for a smoother haptic response
        generator.impactOccurred()
    }
}
